package com.firemoss.atonement.example.contactmanager.service.dto
{
	import com.firemoss.atonement.example.contactmanager.model.Company;
	import com.firemoss.atonement.example.contactmanager.model.Contact;

	[RemoteClass( alias="com.firemoss.atonement.example.contactmanager.service.dto.ContactDTO" )]
	public class ContactDTO
	{
		public var id : Number
		public var firstName : String
		public var lastName : String
		public var phone : String
		public var email : String
		public var notes : String
		[PropertyResolver( type="com.firemoss.atonement.example.contactmanager.service.dto.ContactDTO", functionName="resolveCompanyId", sourcePropertyName="company" )]
		public var companyId : Number
		
		public function resolveCompanyId( company : Company, two : *, three : *, four : * ) : Number
		{
			return company.id
		}
	}
}